void main() {
  Animal a1 = new Animal('狗', '土黄色', '肉骨头');
  a1.fly();
  String res = a1.biu();
  print(res);
}

// 动物
// with 跟上 mixin 即可，多个用 ,分隔开来即可
class Animal with FlyMixin, EyeBiuBiuBiuMixin {
  String? name;
  String? color;
  String? food;
  Animal(this.name, this.color, this.food);

  bark() {
    print('啊呜~~');
  }
}

// 赛博朋克动物
// 定义 mixin，
mixin FlyMixin {
  void fly() {
    print('我会飞');
  }
}

mixin EyeBiuBiuBiuMixin {
  biu() {
    print('biubiubiu');
    return '激光~';
  }
}
